package abcy.cloud.syscoreserver.mappers;

import abcy.cloud.syscoreserver.dto.req.SysMenuSelectReqDto;
import abcy.cloud.syscoreserver.dto.resp.SysMenuSelectRespDto;
import abcy.cloud.syscoreserver.entities.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenuSelectRespDto> getMenusForPage(@Param("req")SysMenuSelectReqDto sysMenuSelectReqDto);

    String getMaxMenusCode();

    SysMenuSelectRespDto getParentMenuInfo(@Param("id") String id);

}